projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c70a12
)
XIM: gracefully deal with non-X backends
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 30 Dec 2011 04:43:28 +0000
(23:43 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 30 Dec 2011 04:43:51 +0000
(23:43 -0500)
Patch by Young-Ho Cha, bug 660309.
modules/input/gtkimcontextxim.c
patch
|
blob
|
history
diff --git
a/modules/input/gtkimcontextxim.c
b/modules/input/gtkimcontextxim.c
index 84f2379188299c466872e161211297dd343783df..3241b60dbe0a3b2f5248172d4639379088743bb2 100644
(file)
--- a/
modules/input/gtkimcontextxim.c
+++ b/
modules/input/gtkimcontextxim.c
@@
-650,6
+650,8
@@
gtk_im_context_xim_new (void)
GtkIMContextXIM *result;
const gchar *charset;
+ if (!GDK_IS_X11_DISPLAY(gdk_display_get_default()))
+ return NULL;
result = g_object_new (GTK_TYPE_IM_CONTEXT_XIM, NULL);
result->locale = g_strdup (setlocale (LC_CTYPE, NULL));